<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:63:"/var/www/fish/application/crm/view/visittask/visitTaskList.html";i:1516864142;}*/ ?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>小鱼ADMIN</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/public/static/css/font.css">
    <link rel="stylesheet" href="/public/static/css/bgadmin.css">
    <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <style>
  .layui-input{height:30px;}
  .layui-form-label{line-height: 16px;}
  </style>
  <body>
    <div class="bg-body">
      <div class="layui-row" id="bg_nav_id">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
      </div>
      <div class="layui-row" id="search_id">
        <form class="layui-form ">
			<div class="layui-form-item">
				<div class="layui-inline">
				  <label class="layui-form-label">创建时间从：</label>
				  <div class="layui-input-inline">
					<input type="text" class="layui-input" id="start_createtime_id" name="start_createtime">
				  </div>
				</div>
				<div class="layui-inline">
				  <label class="layui-form-label">到：</label>
				  <div class="layui-input-inline">
					<input type="text" class="layui-input" id="end_createtime_id" name="end_createtime">
				  </div>
				</div>
				<div class="layui-inline">
				  <label class="layui-form-label">创建人：</label>
				  <div class="layui-input-inline">
					<select name="createuser" id="createuser_id" lay-verify="" autocomplete="off" class="layui-input" lay-search="">
						<option value="">直接选择或搜索选择</option>  <!--请选择-->
						<?php if(is_array($arrUsers) || $arrUsers instanceof \think\Collection || $arrUsers instanceof \think\Paginator): $i = 0; $__LIST__ = $arrUsers;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo $vo['username']; ?>"><?php echo $vo['cn_name']; ?>   ( <?php echo $vo['username']; ?> ) </option>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</select>
				  </div>
				</div>
				<div class="layui-inline">
				  <label class="layui-form-label">执行坐席：</label>
				  <div class="layui-input-inline">
					<select name="username" id="username_id" lay-verify="" autocomplete="off" class="layui-input" lay-search="">
						<option value="">直接选择或搜索选择</option>  <!--请选择-->
						<?php if(is_array($arrUsers) || $arrUsers instanceof \think\Collection || $arrUsers instanceof \think\Paginator): $i = 0; $__LIST__ = $arrUsers;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<option value="<?php echo $vo['username']; ?>"><?php echo $vo['cn_name']; ?>   ( <?php echo $vo['username']; ?> ) </option>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</select>
				  </div>
				</div>
                <div class="layui-inline">
                  <label class="layui-form-label">任务状态：</label>
                  <div class="layui-input-inline">
                    <select name="task_status" id="task_status_id" lay-verify="" autocomplete="off" class="layui-input">
                        <option value="">全部任务</option>  <!--请选择-->
                        <option value="Y">进行中</option>  <!--请选择-->
                        <option value="N">已过期</option>  <!--请选择-->
                        
                    </select>
                  </div>
                </div>
				<a class="layui-btn layui-btn-small"  style="margin-bottom: 10px;" id="search"  lay-submit="" lay-filter="search"><i class="layui-icon" >&#xe615;</i></a>
			</div>
		</form>
	  </div>

      <table class="layui-table" lay-data="{id: 'id', height: 'full-200',url:'/index.php/crm/Visittask/visitTaskDataList', page:true, limit:10, limits:[10,20,30,50]}" lay-filter="demo">
        <thead>
        <tr>
          <!--<th lay-data="{checkbox:true, fixed: true}"></th>-->
          <th lay-data="{field:'id', align:'center', width:80}">编号</th>
          <th lay-data="{field:'createtime', width:180, align:'center'}">创建时间</th>
          <th lay-data="{field:'createuser', width:100, align:'center'}">创建人</th>
          <th lay-data="{field:'username', width:100, align:'center'}">执行坐席</th>
          <th lay-data="{field:'endtime', width:180, align:'center'}">任务结束时间</th>
          <th lay-data="{field:'task_type', width:140, align:'center'}">任务类型</th>
          <th lay-data="{field:'task_note', width:180, align:'center'}">任务备注</th>
		  <th lay-data="{field:'status', width:100, align:'center'}">任务状态</th>
          <th lay-data="{field:'sale_program', width:180, align:'center'}">销售方案</th>
          <th lay-data="{fixed: 'right', width:120, align:'center', toolbar: '#barDemo'}">操作</th>
        </tr>
        </thead>
      </table>
       
      <script type="text/html" id="barDemo">
		<a class="layui-btn layui-btn-normal layui-btn-mini" lay-event="edit">打开任务</a>
	  </script>
    </div>
</body>
<script type="text/javascript" src="/public/static/crm/js/visitTask/visitTaskList.js"></script>
</html>